<?php


	
	$mysqli=new mysqli('localhost','me77','taktaz','ntz') or die ("Connetion error!");


	$question=$_POST['q'];
	$answer=$_POST['a'];
       

	$query="insert into faq(q,a) values('$question','$answer')";
	$res=$mysqli->query($query);
	if ($res) {
		
		header('location:adminpanel.php?fq=ok');
	}

	else{
		header('location:adminpanel.php?fq=nok');

	}
	
	

?>